package com.mall.user.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 城市表
 * </p>
 *
 * @author Darren
 * @since 2022-08-29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cities")
@ApiModel(value="Cities对象", description="城市表")
public class Cities implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 城市ID
     */
    @ApiModelProperty(value = "城市ID")
    @TableId(value = "cityid", type = IdType.AUTO)
    private String cityid;

    /**
     * 城市名称
     */
    @ApiModelProperty(value = "城市名称")
    @TableField("city")
    private String city;

    /**
     * 省份ID
     */
    @ApiModelProperty(value = "省份ID")
    @TableField("provinceid")
    private String provinceid;


}
